<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>脚本元素的使用</title>
<link href="css3.css" rel ="stylesheet" type="text/css">
<script type="text/javascript" async="true">
	function Btn_Click(){
		var strTxt=document.getElementById("txtContent").value;
		var strDiv=document.getElementById("divShow");
		strDiv.style.display="block";
		strDiv.innerHTML="您输入的字符是："+strTxt;
	}/*async同步异步*/
</script>
<noscript>您的浏览器不支持JavaScript!</noscript>
</head>
<body>

<input type="text" id="txtContent" class="inputtxt" />
<input type="button" value="点我点我点我" class="inputbtn" onClick="Btn_Click()" />
<div id="divShow" class="divShow"></div>
</body>
</html>
